'''
Created on 2009-9-4

@author: LiPengYu
'''
import cherrypy

def set(name, value):
    cherrypy.session[name]=value

def user():
    if('user' not in cherrypy.session):
        cherrypy.session['user']=''
    return cherrypy.session['user']

def role():
    if('role' not in cherrypy.session):
        cherrypy.session['role']='guest'
    return cherrypy.session['role']
